import Vue from 'vue'
import ElementUI from 'element-ui';
import App from './App.vue'
import router from './router'
import 'element-ui/lib/theme-chalk/index.css';
import navigateTo from './utils/GlobleFunction'
import echarts from 'echarts'
// 导入过滤器
import { formatCurrency, formatDate, checkPermission, getFundTypes } from './utils/filters'
// 注册全局过滤器
Vue.filter('formatCurrency', formatCurrency)
Vue.filter('formatDate', formatDate)
Vue.filter('checkPermission', checkPermission)
Vue.filter('getFundTypes', getFundTypes)


Vue.prototype.$echarts = echarts

// 添加事件总线
Vue.prototype.$bus = new Vue();

Vue.prototype.navigateTo = navigateTo;


Vue.use(ElementUI);

Vue.config.productionTip = false

new Vue({
  router,
  render: h => h(App)
}).$mount('#app')
